import request from '@/utils/request'

// 查询屏保信息列表
export function listScreenSaver(query) {
  return request({
    url: '/platform/screenSaver/list',
    method: 'get',
    params: query
  })
}

// 查询屏保信息详细
export function getScreenSaver(id) {
  return request({
    url: '/platform/screenSaver/' + id,
    method: 'get'
  })
}

// 新增屏保信息
export function addScreenSaver(data) {
  return request({
    url: '/platform/screenSaver',
    method: 'post',
    data: data
  })
}

// 修改屏保信息
export function updateScreenSaver(data) {
  return request({
    url: '/platform/screenSaver',
    method: 'put',
    data: data
  })
}

// 删除屏保信息
export function delScreenSaver(id) {
  return request({
    url: '/platform/screenSaver/' + id,
    method: 'delete'
  })
}

// 导出屏保信息
export function exportScreenSaver(query) {
  return request({
    url: '/platform/screenSaver/export',
    method: 'get',
    params: query
  })
}